const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  devServer: {
    proxy: {
      '/dev-api': {
        target: 'http://localhost:8090',  // 实际的服务器地址
        changeOrigin: true,
        pathRewrite: {
          '^/dev-api': '',  // 将虚拟路径映射到实际路径
        },
      },
    },
  },
  transpileDependencies: true
})
